﻿<UserControl x:Class="Twi.COMMON.WPF.QueryConditionComponent2"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">
    <Grid>
        <Grid.Resources>
            <ResourceDictionary>
                <Style TargetType="{x:Type CheckBox}">
                    <Setter Property="Margin" Value="0,6,0,0"/>
                    <Setter Property="VerticalAlignment" Value="Top"></Setter>
                    <Setter Property="HorizontalAlignment" Value="Center"></Setter>
                    <Setter Property="Height" Value="23"></Setter>
                </Style>
                <Style TargetType="{x:Type ComboBox}">
                    <Setter Property="Margin" Value="0,0,3,0"/>
                    <Setter Property="Height" Value="23"></Setter>
                    <Setter Property="SelectedValuePath" Value="Tag"></Setter>
                    <Setter Property="SelectedValue" Value="1"></Setter>
                </Style>
                <Style TargetType="{x:Type TextBox}">
                    <Setter Property="Margin" Value="0,2,3,0"/>
                    <Setter Property="VerticalAlignment" Value="Top"></Setter>
                    <Setter Property="Height" Value="23"></Setter>
                 </Style>
                <Style TargetType="{x:Type DatePicker}">
                    <Setter Property="Margin" Value="0,2,3,0"/>
                    <Setter Property="VerticalAlignment" Value="Top"></Setter>
                    <Setter Property="Height" Value="23"></Setter>
                </Style>
            </ResourceDictionary>
        </Grid.Resources>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="20"></ColumnDefinition>
            <ColumnDefinition Width="110"></ColumnDefinition>
            <ColumnDefinition Width="65" Name="ColumnDefinTextComparison"></ColumnDefinition>
            <ColumnDefinition Width="140*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <CheckBox Grid.Row="0" Grid.Column="0" Name="ChkText" TabIndex="10"/>
        <ComboBox Grid.Column="1" Background="White" Name="CobTextColName" TabIndex="20" DisplayMemberPath="Element[ColumnDisplayName].Value" Margin="0,3,3,3"></ComboBox>
        <ComboBox Grid.Column="2" Background="White" Name="CobTextComparison" TabIndex="30" SelectedValuePath="Tag" Margin="0,3,3,3">
            <ComboBoxItem IsSelected="True" Content="类似于" Tag="1" TabIndex="40"  />
            <ComboBoxItem Content="等于" Tag="2" />
            <ComboBoxItem Content="不等于" Tag="3" /> 
        </ComboBox>
        <TextBox Grid.Column="3" Name="TxtTextContent" MinWidth="80" Margin="0,3,3,0"></TextBox>
    </Grid>
</UserControl>
